__author__ = 'East'

import random

# 实现五位验证码
checkcode = ''

for i in range(4):
    # i = 0 1 2 3
    current = random.randint(0, 4)
    # 字母
    if current == i:
        tmp = chr(random.randint(65, 90))
    # 数字
    else:
        tmp = random.randint(0, 9)
    checkcode += str(tmp)

print(checkcode)